﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FrameworkManapro.BusinessModel;

namespace GMAC.ReportingSystem.Business.Entities
{
    [DbProcedures(Insert = "procCheckInsert", Update = "procCheckUpdate", Delete = "procCheckDelete")]
    public class Check : BusinessEntity
    {
        /// <summary>
        /// Gets or sets the ID.
        /// </summary>
        /// <value>The ID.</value>
        [EntityPrimaryKey]
        [DbParameter(0, 1, 1)]
        public int ID { get; set; }

        /// <summary>
        /// Gets or sets the dDate.
        /// </summary>
        /// <value>The dDate.</value>
        [DbParameter(1, 2, 0)]
        public DateTime dDate { get; set; }

        /// <summary>
        /// Gets or sets the CheckNumber.
        /// </summary>
        /// <value>The CheckNumber.</value>
        [DbParameter(2, 3, 0)]
        public string CheckNumber { get; set; }

        /// <summary>
        /// Gets or sets the BankID.
        /// </summary>
        /// <value>The BankID.</value>
        [DbParameter(3, 4, 0)]
        public Bank Bank { get; set; }


        /// <summary>
        /// Gets or sets the Amount.
        /// </summary>
        /// <value>The Amount.</value>
        [DbParameter(4, 5, 0)]
        public Decimal Amount { get; set; }


    }
    public class CheckCollection : List<Check>
    {
        public int TotalResults { get; set; }
    }
}
